package com.jsti.sis.service.demo;

import com.jsti.sis.dal.mapper.demo.MenuMapper;
import com.jsti.sis.dal.po.demo.MenuPo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class MenuService {
    @Resource
    private MenuMapper menuMapper;

    public MenuPo get(Long id) {
        MenuPo po = menuMapper.selectById(id);

        log.info("查询信息，{}",po);

        log.info("info:{}",menuMapper.getByMenuId(id));
        return po;
    }
}
